package com.jsits.v2x.compute.config;

import com.jsits.v2x.common.dto.ControlDto;
import com.jsits.v2x.compute.dto.MainRoadStatusDto;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * 保存探测的各个路的信息
 */
@Component
@Data
public class DataConfig {
    //各个方向的最新速度
    private Integer main1Speed = 0;
    private Integer main2Speed = 0;
    private Integer sub1Speed = 0;
    private Integer sub2Speed = 0;

    //上次统计时各个方向的速度
    private Integer lastMain1Speed = 0;
    private Integer lastMain2Speed = 0;
    private Integer lastSub1Speed = 0;
    private Integer lastSub2Speed = 0;

    //上上次统计时各个方向的速度
    private Integer lastLastMain1Speed = 0;
    private Integer lastLastMain2Speed = 0;
    private Integer lastLastSub1Speed = 0;
    private Integer lastLastSub2Speed = 0;

    // 累计超速时间
    private Integer cumulativeNumber = 0;
    private Date main1OverSpeedTime;
    private Date main2OverSpeedTime;

    /**
     * 方向1的上传数据
     */
    private MainRoadStatusDto mainRoadStatusDto_1 = new MainRoadStatusDto();

    /**
     * 方向2的上传数据
     */
    private MainRoadStatusDto mainRoadStatusDto_2 = new MainRoadStatusDto();

    /**
     * 主路方向1的屏幕显示内容
     */
    private ControlDto controlDtoMain1 = new ControlDto();

    /**
     * 主路方向2的屏幕显示内容
     */
    private ControlDto controlDtoMain2 = new ControlDto();

    /**
     * 支路方向1的屏幕显示内容
     */
    private ControlDto controlDtoSub1 = new ControlDto();

    /**
     * 支路方向2的屏幕显示内容
     */
    private ControlDto controlDtoSub2 = new ControlDto();
}
